package com.leo.ibatis.demo.domain;

import java.io.Serializable;

public class Bannerdata implements Serializable {

	private static final long serialVersionUID = 1L;

	private String favcategory;

	private String bannername;

	public Bannerdata() {
	}

	public String getFavcategory() {
		return favcategory;
	}

	public void setFavcategory(String favcategory) {
		this.favcategory = favcategory;
	}

	public String getBannername() {
		return bannername;
	}

	public void setBannername(String bannername) {
		this.bannername = bannername;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((favcategory == null) ? 0 : favcategory.hashCode());

		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final Bannerdata other = (Bannerdata) obj;
		if (favcategory == null) {
			if (other.favcategory != null)
				return false;
		} else if (!favcategory.equals(other.favcategory))
			return false;

		return true;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + "@" + Integer.toHexString(hashCode()) + 
			"(" + 
			"favcategory=" + "'" + favcategory + "'" + 
			")";
	}
	
}
